package com.ruoyi.warn.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 预警规则条件对象 BUS_WATER_WARNRULE_CONDITIONS
 * 
 * @author maliang
 * @date 2025-09-10
 */
public class BusWaterWarnruleConditions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 规则id */
    @Excel(name = "规则id")
    private String ruleid;

    /** 条件名称 */
    @Excel(name = "条件名称")
    private String conditionname;

    /** 符号 1-大于等于 2-大于；3-小于等于；4-小于；5-等于 */
    @Excel(name = "符号 1-大于等于 2-大于；3-小于等于；4-小于；5-等于")
    private String symbol;

    /** 条件值1 */
    @Excel(name = "条件值1")
    private String numvalue;

    /** 符号 1-大于等于 2-大于；3-小于等于；4-小于；5-等于 */
    @Excel(name = "符号 1-大于等于 2-大于；3-小于等于；4-小于；5-等于")
    private String symbol2;

    /** 条件值2 */
    @Excel(name = "条件值2")
    private String numvalue2;

    /** 更新人员id */
    @Excel(name = "更新人员id")
    private Long userid;

    /** 是否开启   0是 1否 */
    @Excel(name = "是否开启   0是 1否")
    private String isno;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;

    private String itemname;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setRuleid(String ruleid) 
    {
        this.ruleid = ruleid;
    }

    public String getRuleid() 
    {
        return ruleid;
    }
    public void setConditionname(String conditionname) 
    {
        this.conditionname = conditionname;
    }

    public String getConditionname() 
    {
        return conditionname;
    }
    public void setSymbol(String symbol) 
    {
        this.symbol = symbol;
    }

    public String getSymbol() 
    {
        return symbol;
    }
    public void setNumvalue(String numvalue) 
    {
        this.numvalue = numvalue;
    }

    public String getNumvalue() 
    {
        return numvalue;
    }
    public void setSymbol2(String symbol2) 
    {
        this.symbol2 = symbol2;
    }

    public String getSymbol2() 
    {
        return symbol2;
    }
    public void setNumvalue2(String numvalue2) 
    {
        this.numvalue2 = numvalue2;
    }

    public String getNumvalue2() 
    {
        return numvalue2;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setIsno(String isno) 
    {
        this.isno = isno;
    }

    public String getIsno() 
    {
        return isno;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ruleid", getRuleid())
            .append("conditionname", getConditionname())
            .append("symbol", getSymbol())
            .append("numvalue", getNumvalue())
            .append("symbol2", getSymbol2())
            .append("numvalue2", getNumvalue2())
            .append("remark", getRemark())
            .append("userid", getUserid())
            .append("isno", getIsno())
            .toString();
    }
}
